<template>
	<view class="di">
		<!-- 单独专题 -->
		<view style="height: 20rpx;"></view>
		<view class="subject">
			<!-- 专题类型 -->
			<view class="title">
				<u-icon class="icon1" :name="icontype" color="#abc270" size="40rpx"></u-icon>
				<text class="actype">{{actype[0]}}</text>
			</view>
			<u-image class="picture" mode="aspectFill" width="100%" height="300" src="../../static/Leave/exam.png"></u-image>
			<!-- 专题内容 -->
			<view class="content">
				<view>
					<h2 class="acname">{{acname[0]}}</h2>
					<h6 class="explain">{{explain[0]}}</h6>
				</view>
				<button class="button1" plain size="medium" @click="navigateTo('/pages/Leave/LeaveDetail')">Check</button>
			</view>
		</view>
		<view style="height: 20rpx;"></view>
		<view class="subject">
			<!-- 专题类型 -->
			<view class="title">
				<u-icon class="icon1" :name="icontype" color="#abc270" size="40rpx"></u-icon>
				<text class="actype">{{actype[0]}}</text>
			</view>
			<u-image class="picture" mode="aspectFill" width="100%" height="300" src="../../static/Leave/exam.png"></u-image>
			<!-- 专题内容 -->
			<view class="content">
				<view>
					<h2 class="acname">{{acname[0]}}</h2>
					<h6 class="explain">{{explain[0]}}</h6>
				</view>
				<button class="button1" plain size="medium" @click="navigateTo('/pages/Leave/LeaveDetail')">Check</button>
			</view>
		</view>
		<view style="height: 20rpx;"></view>
		<view class="subject">
			<!-- 专题类型 -->
			<view class="title">
				<u-icon class="icon1" :name="icontype" color="#abc270" size="40rpx"></u-icon>
				<text class="actype">{{actype[0]}}</text>
			</view>
			<u-image class="picture" mode="aspectFill" width="100%" height="300" src="../../static/Leave/exam.png"></u-image>
			<!-- 专题内容 -->
			<view class="content">
				<view>
					<h2 class="acname">{{acname[0]}}</h2>
					<h6 class="explain">{{explain[0]}}</h6>
				</view>
				<button class="button1" plain size="medium" @click="navigateTo('/pages/Leave/LeaveDetail')">Check</button>
			</view>
		</view>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				actype:['Sick Leave'],
				icontype:'attach',
				
				acname:['Passed','Refused','Pending'],
				explain:['Submit:2021-03-18 00:00:00']
			}
		},
		methods: {
			navigateTo(url) {
			  uni.navigateTo({
			    url,
			  });
			}
		}
	}
</script>

<style>
.di{
	background-color: #f2f2f2;
	background-size: 100% 100%;
}
.subject{
	display: flex;
	border: #C0C4CC solid thin;
	margin-left: 30rpx;
	border-radius: 5px;
	height: 550rpx;
	width: 690rpx;
	flex-direction: column;
	background-color: #FFFFFF;
}
.title{
	height: 90rpx;
	display: flex;
	align-items: center;
	font-weight: normal;
}
.icon1{
		display: flex;
		margin-left: 30rpx;
		margin-right: 5rpx;
}
.actype{
	width: 700rpx;
	font-size: medium;
	text-align: left;
	color: #637040;
	font-weight: 500;
	margin-left: 10rpx;
}
.picture{
	box-shadow:0px -0.5px 3px #EEEEEE;
	border-bottom: #C0C4CC solid thin;
	border-top: #C0C4CC solid thin;
}
.content{
	margin-left: 20rpx;
	display: flex;
}
.acname{
	margin-left: 20rpx;
	margin-top: 30rpx;
	font-weight: normal;
}
.explain{
	margin-left: 20rpx;
	margin-top: 8rpx;
	font-weight: normal;
	color: #8F8F94;
}
.button1{
	margin-right: 30rpx;
	margin-top: 30rpx;
	border: #ABC270 solid thin;
	color: #ABC270;
	font-weight: bold;
}
</style>
